package com.woniuxy.commentmodel.form;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("修改评论参数列表")
public class UserModifyForm {
    @ApiModelProperty("评论id")
    @Min(1)
    @NotNull
    private Integer commentId;
    @ApiModelProperty("评论具体内容")
    @NotBlank(message = "评论内容不为空")
    private String content;
    @ApiModelProperty("评论上传图片")
    private String commentImage;
    @ApiModelProperty("评分")
    @NotNull(message = "评分不为空")
    @Min(0)
    private Double rate;
}
